﻿var g_plugin = 0;
 
 if (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"] &&    
     navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin) {
 
 	var version_check = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"] ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0); 
 	var flash_ver = parseInt(version_check.description.substring(version_check.description.indexOf(".")-1))
 	// NAVIGATOR PLUGINS START
 	if (navigator.plugins && navigator.plugins["Shockwave Flash"] && flash_ver > 5 )
 		g_plugin = 1;
 	// NAVIGATOR PLUGINS END
 }
 else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0
 	&& (navigator.userAgent.indexOf("Windows 95")>=0 
 	|| navigator.userAgent.indexOf("Windows 98")>=0 
 	|| navigator.userAgent.indexOf("Windows NT")>=0)) {
 		document.write('<SCRIPT LANGUAGE=VBScript> \n');
 		document.write('on error resume next \n');
 		// ISOBJECT START
 		document.write('if ( g_plugin <= 0 ) then g_plugin = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.6"))) \n');
 		document.write('if ( g_plugin <= 0 ) then g_plugin = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.7"))) \n');
 		// ISOBJECT END
 		document.write('</SCRI');
 		document.write('PT> \n');
 }
